<?php
$pattern = 	'/<img.+?src(?: )*=(?: )*[\'"](.*?)[\'"].*?<\/a>(.*?)$/si';
$xml=simplexml_load_file("http://topics.nytimes.com/top/features/travel/columns/frugal_traveler/index.html?rss=1");
foreach($xml->children()->children()->item as $child) {
	$img = $child->description;
	preg_match($pattern, $img, $match);
	$img = $match[1];
	$alt = $match[2];
	$feed = array (
		"title" => $child->title,
		"url" => $child->link,
		"image" => $img,
		"alt" => $alt,
		"author" => $child->author,
		"date" => $child->pubDate
	);
	$feeds[] = $feed;
}
?>